package com.zz.retryall.service;

import com.zz.retryall.transport.HelloTransport;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class HelloRetryService implements IHelloService{

    @Autowired
    private HelloTransport helloTransport;

    @Autowired
    NameService nameService;

    public String hello()  {

        return helloTransport.hello() + "， "+ nameService.getName();
    }
}
